<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Store test page</title>
<link type="text/css" href="css/smoothness/jquery-ui-1.8.22.custom.css"
	rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.22.custom.min.js"></script>
<script type="text/javascript">

	function getCookie(c_name)
	{
		var i,x,y,ARRcookies=document.cookie.split(";");
		for (i=0;i<ARRcookies.length;i++)
		{
  			x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
  			y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
  			x=x.replace(/^\s+|\s+$/g,"");
  			if (x==c_name)
    		{
    			return unescape(y);
    		}
  		}
	}

	$(function() {
		var username = getCookie('username');
		alert(username);
		if (username != null) {
			$('<div>' + username + '<\div>').appendTo('div');
		}
	});
	
</script>
<style type="text/css">
</style>
</head>
<body>
	<h1>jQuery UI test page</h1>
	<p></p>

	<div />
</body>
</html>



